import time

from selenium.webdriver.common.by import By
from ykao.Base.Base import Base
class Page(Base):
    dz='https://mail.163.com/'
    jrr=(By.XPATH,'/html/body/div[3]/div[3]/div[1]/div/div[3]/div[1]/div[2]/iframe')
    zh=(By.XPATH,'/html/body/div[2]/div[2]/div[2]/form/div/div[1]/div[2]/input')
    mm=(By.XPATH,'/html/body/div[2]/div[2]/div[2]/form/div/div[3]/div[2]/input[2]')
    dl=(By.XPATH,'/html/body/div[2]/div[2]/div[2]/form/div/div[8]/a')
    def yx(self):
        self.get_url(self.dz)
        time.sleep(2)
        self.ifm(self.jrr)
        time.sleep(2)
        self.send_keys(self.zh,'15649920329')
        time.sleep(2)
        self.send_keys(self.mm,'Acy20040102')
        time.sleep(2)
        self.click(self.dl)
        time.sleep(2)
        self.tcuu()